﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BoneImp {
	public abstract class AttachmentLoader {
		string error1;
		string error2;

		/* Returns 0 to not load an attachment. If 0 is returned and AttachmentLoader.error1 is set, an error occurred. */
		public virtual Attachment newAttachment(AttachmentType type, string name) {
			this.error1 = "";
			this.error2 = "";
			return null;
		}

		protected void setError(string error1, string error2) {
			this.error1 = error1;
			this.error2 = error2;
		}

		public abstract Region findRegion(string RegionName);
	}
}
